local _date = require 'core.date'

local test_date = function()
    x = _date('13:00:00')
    print(table.format(x))
    print(x:fmt('%H'))
    y = _date()
    print(table.format(y))
    print(y:fmt('%H:%M:%S'))
    y.daynum = 0
    print(table.format(y))
    print(x < y)
    z = _date()
    print(z:fmt('%H:%M:%S'))
    z:setseconds(0)
    print(z:fmt('%H:%M:%S'))
    z = _date('11:59:20')
    print(z:fmt('%H:%M:%S'))
    z:addminutes(1)
    print(z:fmt('%H:%M:%S'))
    z = z - _date('00:01:00')
    print(z:fmt('%H:%M:%S'))
    print(_date('2015-5-13'):fmt('%W'))
end

-- test_date()


require "core.lib"


mail.send('hello', 'hello', {
    ['xiaohu@lucky-byte.com'] = 'xiaohu',
    'abc@def.com'
})
